package mp.weixin.vo;

import sun.reflect.generics.tree.Tree;

import java.util.List;
import java.util.TreeMap;

/**
 * @Author: ZSXM
 * @Description:
 * @Company: DingZheng
 * @Date: Create by 2018/7/4 1:35
 * @Version: 1.0
 * @Modify by:
 */
public class TemplateData {

    private String touser;

    private String template_id;

    private String url;

    private TreeMap<String,TreeMap<String,String>> data;

    public static TreeMap<String,String> item(String value, String color) {
        TreeMap<String, String> map = new TreeMap<>();
        map.put("value", value);
        map.put("color", color);
        return map;
    }

    public TemplateData() {
    }

    public TemplateData(String touser, String template_id, String url, TreeMap data) {
        this.touser = touser;
        this.template_id = template_id;
        this.url = url;
        this.data = data;
    }

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public String getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public TreeMap getData() {
        return data;
    }

    public void setData(TreeMap data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "TemplateData{" +
                "touser='" + touser + '\'' +
                ", template_id='" + template_id + '\'' +
                ", url='" + url + '\'' +
                ", data=" + data +
                '}';
    }
}
